package com.youhome.controller;

import com.youhome.response.Result;
import com.youhome.response.ResultCode;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by chen365 on 2018/09/11.
 */
//@Api(tags = "测试")
//@RestController
public class HomeController {
    @GetMapping(value = "/home")
    public Object home() {
        return new Result<>(ResultCode.SUCCESS,"home");
    }

    @GetMapping(value = "/test")
    public Object test() {
        return new Result<>(ResultCode.SUCCESS,"test");
    }

}
